package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel
public class AppDTO {

    @NotNull(message = "app主键不可以为空")
    @Range(min = 1, message = "app主键为大于或等于0的正整数")
    @ApiModelProperty(value = "app主键不可以为空",required = true)
    private Integer id;

    @NotBlank(message = "应用名称不可以为空")
    @Length(min = 1, max = 20, message = "应用名称长度需要在1-20个字之间")
    @ApiModelProperty(value = "应用名称")
    private String appName;

    public AppDTO() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }
}
